package com.cqhfan.chatroom.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cqhfan.chatroom.domain.dto.LoginFormDTO;
import com.cqhfan.chatroom.domain.po.User;
import com.cqhfan.chatroom.domain.vo.CaptchaVO;
import com.cqhfan.chatroom.domain.vo.UserInfoVO;
import com.cqhfan.chatroom.domain.vo.UserLoginVO;

/**
 * @author 眭传洪
 * @create 2024-11-14 19:40
 */
public interface IUserService extends IService<User> {
    UserLoginVO login(LoginFormDTO dto);

    CaptchaVO generatorCaptcha(Integer width, Integer height);

    void sendCode(String phoneNumber);

    UserInfoVO getUserInfo();

    UserLoginVO refreshToken(String refreshToken);

    void updateAvatar(Long userId, String avatarUrl);

    void updateUserInfo(User user);

    void logout(String refreshToken);
}
